package com.ipay.service;

import java.util.List;
import java.util.Map;

import com.ipay.entity.CashiersEntity;
import com.ipay.entity.MerchantInfoEntity;

/**
 * 文件上传
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-03-25 12:13:26
 */
public interface CashiersService {
	
	void save(CashiersEntity cash);
	
	int update(CashiersEntity cash);
	
	List<CashiersEntity> queryList(Map<String, Object> map);

	int queryTotal(Map<String, Object> map);
	
	CashiersEntity queryObject(Long id);
	
	void deleteBatch(Long[] ids);
	
	int updateBatch(Long[] ids);
	
	int recoveryBatch(Long[] ids);
	
	CashiersEntity findCashierByOpenid(String openid, int activateState);

	/**
	 * 统计使用  查询用户下对应的收款二维码信息
	 * @param cashiersEntity
	 * @return
	 */
	List<Map<String, Object>> findCodeDataGrouping(CashiersEntity cashiersEntity);
	
	/**
	 * 根据手机号码、状态查询收款员信息
	 * @param map
	 * @return
	 */
	CashiersEntity findCashierByMobile(Map<String, Object> map);
}
